package com.lpf.flyweight;

// 具体享元类 - 共享字符
class ConcreteCharacter implements MyCharacter {
    private char symbol;

    public ConcreteCharacter(char symbol) {
        this.symbol = symbol;
    }

    @Override
    public void display(int fontSize) {
        System.out.println("Symbol: " + symbol + ", Font size: " + fontSize);
    }
}
